import { getTypes } from '@/api/warehouse';
import { TableData, PaginationQuery } from '@/types/table';
import { DeptsQuery } from '@/types/depts';

export default async function typeSeries(params?: DeptsQuery | PaginationQuery): Promise<TableData> {
    const { content, totalElements } = await getTypes(params);

    return {
        list: content,
        total: totalElements,
    };
}
